//
//  ChangeSpeedWithAction.h
//  SpaceStorm
//
//  Created by 祥 雍 on 13-7-20.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#import "cocos2d.h"

@interface ChangeSpeedWithAction : CCAction<NSCopying>
{
    CCActionInterval	*innerAction_;
    ccTime	elapsed_;
	BOOL	firstTick_;
    float accSpeed_;
	float startSpeed_;
    float finishUpTime_;
    float startDowmTime_;
    float curSpeed_;
}

@property (nonatomic,readwrite) float accSpeed;
@property (nonatomic,readwrite) float startSpeed;
@property (nonatomic,readwrite) float finishUpTime;
@property (nonatomic,readwrite) float startDowmTime;
@property (nonatomic, readwrite, retain) CCActionInterval *innerAction;

+(id) actionWithAction: (CCActionInterval*)action 
                 accSpeed:(float)accSpeed
            startSpeed:(float)rate
          finishUpTime:(float)fut
         startDowmTime:(float)sdt;

-(id) initWithAction: (CCActionInterval*) action
               accSpeed:(float)accSpeed
          startSpeed:(float)rate
        finishUpTime:(float)fut
       startDowmTime:(float)sdt;

@end
